package DesignPattern.Behavior.Visitor;

public class Client {
    public static void main(String[] args) {
        Home home = new Home();

        home.addAnimal(new Cat());
        home.addAnimal(new Dog());

        Owner owner = new Owner();
        Others others = new Others();

        home.action(owner);
        home.action(others);
    }
}
